package com.finley.flowabledemo.design.state.demo;


/**
 * @description: 上下文
 * @author: xianfei.chao
 * @date 2025/5/31 22:41
 * @version: 1.0
 */


public class Context {

    private IMatchZone matchZone;

    /**
     * 重量
     */
    private Integer weight;

    /**
     * 长度
     */
    private Integer length;

    public Context(IMatchZone matchZone) {
        this.matchZone = matchZone;
    }

    public String handler(){
        return this.matchZone.matchDestZone(this);
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public void setMatchZone(IMatchZone matchZone) {
        this.matchZone = matchZone;
    }


}
